package base;

import java.util.*;

public abstract class Manager extends Item {

	public Manager() {
	}

	protected ArrayList<Item> itemList = new ArrayList<>();

	private OnCompleteListenner onCompleteListenner;

	public abstract void init(Parameter parameters,
			List<ReferenceParameter> rpList);

	public abstract void getResult();

	public void setOnCompleteListenner(OnCompleteListenner completeListenner) {
		this.onCompleteListenner = completeListenner;
	}

	protected void onComplete() {
		if (onCompleteListenner == null)
			return;
		onCompleteListenner.onComplete(this);
	}

	public interface OnCompleteListenner {

		public void onComplete(Manager manager);

	}

}